const express = require('express');
const router = express.Router();
const homeController = require('../controllers/homeController');

// 首页数据接口
router.get('/data', homeController.getHomeData);

// 首页各区域独立接口
router.get('/notices', homeController.getNotices);
router.get('/topics', homeController.getTopics);
router.get('/activities', homeController.getActivities);
router.get('/market-items', homeController.getMarketItems); // 新增路由
router.get('/study', homeController.getStudy);

module.exports = router;
